home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / atdir.arc / AT_DOC.TXT next >
Encoding:
Text File  |  1986-09-22  |  45.3 KB  |  813 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.                                          ATTRIBUTES OF POWER 
  23.                                     (C) Copyright 1986 Brian Murphy
  24.                                           ATTRIBUTES OF POWER
  25.                                     Copyright (c)1986 Brian Murphy
  26.  
  27.  
  28.             TABLE OF CONTENTS
  29.  
  30.  
  31.             Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  32.             Installation  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  33.             Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  3
  34.                  Attribute/Command symbols  . . . . . . . . . . . . . . . . . . . .  3
  35.                  Search/Set symbols . . . . . . . . . . . . . . . . . . . . . . . .  4
  36.             Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  37.             Error Messages  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  7
  38.             Output  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  39.             Notes On the D,V,X, and Y Attributes  . . . . . . . . . . . . . . . . . 10
  40.             Specific Effects Of Attributes  . . . . . . . . . . . . . . . . . . . . 11
  41.             Sample outputs of "dir" and "AT"  . . . . . . . . . . . . . . . . . . . 13
  42.  
  43.             This program requires DOS 2.0 or above and a display width of 80 characters per
  44.             line for proper operation.
  45.  
  46.  
  47.             RIGHTS, RESPONSIBILITIES, INFORMATION, AND OF COURSE: THAT LEGAL STUFF
  48.  
  49.                  This program is distributed under the "Userware" concept.  This means that
  50.             you are free to use, copy, and distribute the program and its associated files
  51.             free of charge.  What the author of the program asks in return is that you send
  52.             a registration fee of an amount which you feel appropriate for the program ($10
  53.             suggested).
  54.                  Of course you are under no obligation to send in this registration fee. 
  55.             Not doing so will in no way interfere with your right to use and distribute
  56.             copies of the program.  But look at it from the programmer's point of view.  A
  57.             lot of time went into development and testing of this program, as well as money
  58.             to find the best compiler for the job to make the final product as quick and
  59.             painless for YOU to use as possible.  Surely $10 is not to much to ask for in
  60.             return.  After all, while public domain programs are for your use, the people
  61.             who create the truly useful programs are going to get tired of taking the time
  62.             and effort to make programs which the PC world NEEDS, and distribute them free
  63.             of charge, if they are not rewarded in some small way for their efforts.
  64.                  Please take the time NOW to send your registration check to:
  65.  
  66.             Attributes Of Power
  67.             c/o Brian Murphy
  68.             711 Arch #304
  69.             Ann Arbor, MI  48104
  70.  
  71.             -----
  72.  
  73.             Copyright Notice:
  74.  
  75.                  ATTRIBUTES OF POWER (AT) AND THE ASSOCIATED MANUAL are (C) Copyright 1986
  76.             by Brian Murphy.  AT, and the accompanying user manual may not be modified or
  77.             distributed in modified form without the express written permission of Brian
  78.             Murphy.  Furthermore, AT and its manual, or any modified derivative thereof may
  79.             NOT be sold, or distributed as a bonus accompanying the sale of third party
  80.             hardware or software.
  81.  
  82.             -----
  83.  
  84.             Disclaimer:
  85.  
  86.                  AT and its manual are distributed without guarantee.  Responsibility lies
  87.             solely with the user.  Brian Murphy shall not be held responsible for any
  88.             damage incurred by the use of AT or the manual to hardware, software,
  89.             peripheral device, or any loss of productivity or profit resulting from the use
  90.             of this software.
  91.  
  92.             -----
  93.  
  94.             FYI:
  95.  
  96.                  AT was developed on a Compaq Deskpro 286 using the small version C
  97.             compiler: "Mark William's Let's C".  This compiler was used because it resulted
  98.             in execution speeds ~40% faster than the same program compiled with Microsoft's
  99.             V3.0 C compiler.
  100.                  The manual was written using Word Perfect 4.0
  101.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 1
  102.  
  103.  
  104.             Quick overview of ATTRIBUTES OF POWER:
  105.  
  106.                  In a nut shell ATTRIBUTES OF POWER, besides giving you a wealth of
  107.             information beyond that given by the normal DOS "dir" command, also gives you
  108.             complete control over the file/system attributes which DOS supports but hasn't
  109.             made available to the general user.  The control of attributes such as the
  110.             read-only attribute, which protects your files from accidental erasure and
  111.             alteration, or the archive attribute which allows custom tailoring of files to
  112.             be archived with DOS's "backup" and "restore" commands, or the hidden attribute
  113.             which allows you to eliminate the utility files which continually swamp out the
  114.             files you really want to see in your "dir" listings, is the kind of control AT
  115.             puts at your fingertips.
  116.                  Of course there are several programs currently available which allow one
  117.             to change the attributes of files, so what makes AT so unique?  AT is the only
  118.             program which allows you to perform directory searches and subsequent attribute
  119.             modifications based on file specifications, attribute specifications, or
  120.             combinations of both.  This ability, coupled with the ease of issuing multiple
  121.             attribute setting commands from a single command line, gives you the added
  122.             control and flexibility which is necessary for full and easy use of the
  123.             attributes on your system, allowing you to capitalize on the options which come
  124.             with such added potential.  With this program you have complete control over
  125.             the attributes which the operating system has supported all along, but which
  126.             have been out of reach because until now you, the user, had been provided with
  127.             no simple method for manipulating them.
  128.  
  129.  
  130.             Installation:
  131.  
  132.             Fixed Disk:
  133.  
  134.                  If you have a hard disk, you should copy AT to the directory which
  135.             contains DOS.
  136.                  If you do not have a DOS directory, the easiest thing to do is to copy AT
  137.             to the fixed disk's root directory; for example, put the AT disk into drive A
  138.             and type: "copy a:\at.exe c:\" (assuming your hard disk is drive C).  In
  139.             addition, you should use the "path" command to specify the root directory of
  140.             you hard disk as part of your command search path.  This may be done as
  141.             follows: If you have a "path" command in an autoexec.bat file on your hard
  142.             disk's root directory, append the following to it: ";C:\" so it would look like
  143.             "PATH=(whatever you had previously)\;C:\" (again assuming your hard disk is
  144.             drive C).  If you have an autoexec.bat file, but do not have a path command in
  145.             it, add the line "PATH=C:\" to it.  If you do not have an autoexec.bat file in
  146.             the root directory of your hard disk you may create one by typing the
  147.             following:
  148.  
  149.                            C:{Enter}              (Assuming your hard disk is drive C.)
  150.                            cd\{Enter}
  151.                            copy con autoexec.bat{Enter}
  152.                            path=C:\{Enter}        (Again, assuming C is your hard disk.)
  153.                            ^Z{Enter}              (Press CTRL and Z simultaneously, or F6.)
  154.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 2
  155.  
  156.  
  157.             Floppy Disk:
  158.  
  159.                  Copy AT to the floppy disk where you want to use it.  In most cases this
  160.             will be your working DOS diskette.  For example, if your DOS diskette is in
  161.             drive A, put the AT diskette in drive B and type "copy b:\at.exe a:\".
  162.  
  163.             Note:
  164.  
  165.                  AT, like any program, will only run if it is 1) in the current working
  166.             directory, or 2) if it is in the command path search set by the "path" command. 
  167.             If one of these criteria are not met, when you type AT{enter} you will get the
  168.             following message: "Bad command or file name".  To correct this problem you
  169.             must change either the command search path, or copy AT.EXE to the current
  170.             working directory.
  171.  
  172.  
  173.             TEST SPIN:
  174.  
  175.                  You can use AT in many ways, the easiest of which is just like the DOS
  176.             "dir" command.  Simply type "AT" and return.
  177.  
  178.                  On a more advanced level you can use AT in conjunction with specific
  179.             search patterns you create to look for filespec/attribute combinations, and, at
  180.             your option, change the attributes on files which match those search patterns. 
  181.                  Below is an example of how AT works which shows how to set the read-only
  182.             attribute on the installed copy of AT and thus make it immune to accidental
  183.             erasure or modification.
  184.  
  185.             Change AT's attributes:
  186.  
  187.                  To protect AT now that it is on the disk where you will be using it, make
  188.             sure that disk is the current default disk, and that AT.EXE is in the current
  189.             default directory (both conditions are met if you see AT.EXE when you get a
  190.             "dir" listing) and type the following:
  191.  
  192.                                 at at.exe /+r{Enter}
  193.  
  194.                  This command will invoke AT and cause it to set the read-only attribute on
  195.             AT.EXE while telling you it has done this by placing a "*" at the end of
  196.             AT.EXE's attribute listing line.
  197.  
  198.                  Congratulations!  With this one simple command you have demonstrated all
  199.             the skills necessary to use AT.
  200.  
  201.  
  202.  
  203.                  What follows are the details of running AT by specifying search
  204.             parameters, an explanation of AT's output, and definitions of specific
  205.             attributes and their functions; but remember, anytime you want a directory
  206.             listing, just type AT!
  207.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 3
  208.  
  209.  
  210.             USAGE:
  211.  
  212.                    1) AT {Enter}           Nice and simple, like "dir", or . . .
  213.                    2) AT filespec {Enter}  and still on comfortable ground, or . . .
  214.                    3) AT [filespec] [/{*=~/+-rashvdxycwb]}{...}. .] {Enter} and POWER!
  215.  
  216.             Command:            What it does:
  217.  
  218.             1) AT               Expands to AT *.*; gives complete listing of current
  219.                                 directory.
  220.  
  221.             2) AT filespec      Expands to AT filespec, (or filespec.* if you do not supply
  222.                                 a file extension).  Note that this method of extension
  223.                                 expansion is slightly different from DOS's "dir" in one
  224.                                 respect: with this convention c:\path1\path2 expands into
  225.                                 c:\path1\path2.*  "look for file path2 in directory path1"
  226.                                 instead of DOS's "look in directory path2 for any files". 
  227.                                 If this is what you mean, you must enter c:\path1\path2\
  228.                                      Other than this AT works with file names the same way
  229.                                 DOS's "dir" command does.
  230.  
  231.             3)
  232.                  The third command format, which is where AT is at its best, has an added
  233.             element which the first two formats do not, and that is the command field.
  234.                  The command field is composed of combinations of two kinds of symbols, the
  235.             attribute/command symbols, and the search/set symbols.  The attribute/command
  236.             symbols tell AT what attributes you want to look for, the search/set symbols
  237.             tell AT how to look for these attributes (e.g. find any file which has all
  238.             specified attributes, or find any file which has none of the specified
  239.             attributes), and what you want to do with the matching files found (set or
  240.             reset specified attributes).
  241.  
  242.             Attribute/Command symbols:
  243.  
  244.               attributes:
  245.  
  246.                  r - read only       s - system     h - hidden     v - volume
  247.                  a - archive         d - directory  x - Xunused    y - Yunusd
  248.  
  249.               commands:
  250.  
  251.                  b - blank           w - wide       c - clear
  252.  
  253.  
  254.  
  255.                  Note: See the section titled "Specific Effects Of Attributes" for an
  256.             explanation of what specific attributes are used for.  Also, be aware that the
  257.             attributes X and Y are unused by the current version (3.1) of DOS.  As soon as
  258.             a version of DOS is released which allows you to manipulate them, this program
  259.             is written to allow you to do so.
  260.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 4
  261.  
  262.  
  263.                  The "b","w","c" command symbols are not attributes.  They are commands to
  264.             AT.  The 'b' command tells AT to look for files which have no attributes set
  265.             ("b"lank).  The 'w' symbol ("w"ide) tells AT to give a condensed report,
  266.             omitting a display of individual file times, dates, sizes, slack, etc.  This
  267.             mode is like the "dir /w" report.  For the individual files, all you get are
  268.             the file names and their attributes.  The 'c' symbol ("c"lear) tells AT to
  269.             clear the attributes of all the files it finds.  This is the only symbol of the
  270.             attribute/command symbol group which alters the attributes of files.
  271.  
  272.                  The symbols which control the searches are listed below.  All symbols may
  273.             be used in any logical combination (and AT can figure out most illogical
  274.             combinations as well).  If you specify more than one condition in the command
  275.             field, only files which meet all the conditions will be listed.  The best way
  276.             to figure out how AT works is to look at the examples which follow, and play
  277.             (on a spare floppy if you feel uneasy).
  278.  
  279.  
  280.             Attribute Search/Set Symbols:
  281.  
  282.                  In what follows, xxx represents an arbitrary combination and number of the
  283.             attribute characters "rhshavdxy".  You should specify at least one attribute
  284.             after a search/set symbol, but may specify more.  Note that the command field
  285.             must begin with a "/".
  286.  
  287.             /  : /xxx   -> search for files with any of the specified attributes.  The "/"
  288.                            may be omitted if the xxx characters immediately follow the
  289.                            command "/".
  290.             +  : +xxx   -> set the listed attributes.
  291.             -  : -xxx   -> reset the listed attributes.
  292.             ~  : ~xxx   -> search for files which do not have any of the listed individual
  293.                            attributes.
  294.             =  : =xxx   -> search for files which only have all of the listed attributes.
  295.             ~= : ~=xxx  -> search for files which do not contain this complete block of
  296.                            attributes.
  297.             =~ : =~xxx  -> (same as ~=).
  298.             *  : *xxx   -> search for files which have at least all of the listed          
  299.                            attributes.
  300.  
  301.  
  302.  
  303.  
  304.                   The attribute/command and search/set symbols may be combined in many
  305.             ways.  Following is a very small sampling of the possibilities.
  306.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 5
  307.  
  308.  
  309.             EXAMPLES:
  310.  
  311.                  Note: the examples do not take into account the 'x', and 'y' attributes
  312.             since they are currently not used.  An extension to the use of these attributes
  313.             requires no more than a straightforward application of the principles
  314.             illustrated below with the attributes currently available.
  315.  
  316.             at /~hsv
  317.  
  318.                  This says: "List any files in the current default directory which do not
  319.             have either the 'h','s', or 'v' attributes."  This command combination gives a
  320.             listing which is the equivalent of DOS's "dir".  Only files with a combination
  321.             of the 'a','r', or 'd' attributes (and no others) are listed.
  322.  
  323.             at /a
  324.  
  325.                  This says: "Look in the current default directory, and list any files
  326.             which have the 'a' (plus any other attributes) set".  If you have not purposely
  327.             manipulated the 'a' attribute of these files, such a listing would show you all
  328.             the files on your disk in the current root directory which have been created or
  329.             modified since they were last backed up with DOS's "backup" command.
  330.  
  331.             at /dhs
  332.  
  333.                  This says: "Look in the current default directory, and list all
  334.             subdirectories which have been hidden with the 'h', 's', or both attributes."
  335.  
  336.             at c:\123\ /c
  337.  
  338.                  This says: "Clear the attributes of all files in the C:\123 directory." 
  339.             The command is handy if you want to eliminate a subdirectory.  This will turn
  340.             off all read-only, hidden, and system attributes of all files in the directory,
  341.             thus allowing you to delete them with a single "del *.*".  Note that if you
  342.             didn't have AT, and a commercial program had transferred hidden files to a
  343.             directory (as many do), you would be unable to erase that directory.  Some
  344.             people have faced this maddening experience: the "dir" command shows the
  345.             directory as being empty, but when you try to erase the directory with "rd" DOS
  346.             tells you the directory isn't empty.  With AT such paradoxes vanish with a few
  347.             keystrokes.  Without AT you would be stuck.  Period.
  348.  
  349.             at /a~r-a+r
  350.  
  351.                  This says: "Look in the current default directory for any files which have
  352.             the 'a' attribute, plus any other attributes besides the 'r'.  For those files,
  353.             turn 'a' off, and turn 'r' on".  A similar command is "at /a~rc+r".  There is a
  354.             difference though: the former command turns only the 'a' attribute off, and
  355.             sets the 'r'.  The latter turns all attributes off and sets the 'r'.  This is
  356.             an easy way to find out which files are new or which have been modified in a
  357.             directory, but are currently not write protected, and then protect them from
  358.             accidental erasure or modification.
  359.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 6
  360.  
  361.  
  362.             at c: /=shrc+r
  363.  
  364.                  This says: "Look in the C: default directory.  If there are any files
  365.             which have both attributes 's','h','r' and no others, clear these attributes
  366.             and make the files read only".  Note that the 'c' command is always executed
  367.             first, so "at c: /=shr+rc", "at c:/=cshr+r", and at "c: /c=shr+r" all have the
  368.             same effect.  This command would effectively unhide the write protected hidden
  369.             and system files in the directory, while still protecting them from accidental
  370.             erasure or modification.  An equivalent command would be "at c: /=shr-sh".
  371.  
  372.             at data /b+a
  373.  
  374.                  This says: "Look for all files of the form 'data.*' in the current
  375.             directory which have no attributes set and turn on their 'a' attribute."
  376.             The 'b' command, like the 'c' command, is always executed first, so the
  377.             commands "c: /+ba", and "c: /+ab" would have the same effect as the one above.
  378.  
  379.             at /*sh-s
  380.  
  381.                  This says: "Look for all files in the current directory which have both
  382.             the 's' and 'h' attributes, as well as any others, and turn the 's' attribute
  383.             off.  Files with an 'h' but not 's', or an 's' but no 'h', or neither an 's' or
  384.             'h' will not be affected.
  385.  
  386.             at data path1\path2\ /+sh-ac
  387.  
  388.                 This says: "Look for data.* in '(current drive\directory)\path1\path2\*.*'. 
  389.             For all files of that form in that directory, clear their attributes and turn
  390.             on the 's','h' attributes and turn off the a attribute".  Note the -a is really
  391.             not needed because the 'c' turns off all attributes on the specified files.
  392.  
  393.             at accounts /d+h
  394.  
  395.                  This says: "Look for any subdirectories in the current directory named
  396.             'accounts' (while ignoring any files of the form 'accounts.*') and turn on the
  397.             'h' attribute."  This will effectively hide the "accounts" directory from any
  398.             normal DOS "dir" listings.  The subdirectory may still be entered via "cd" as
  399.             usual if you know it's name, and will be backed up as normal with the DOS
  400.             "backup" command.
  401.  
  402.             at /+wr~c=rh
  403.  
  404.                  This is an exemplary bit of illogic, if ever there was one, to give you an
  405.             idea of how AT goes about deciphering the command line.  Despite the confusion,
  406.             AT knows what you meant (do you?).  It knows you mean: "Search for all files
  407.             which satisfy "~=rh", "c"lear them and turn on 'r'.  Finally, print out the
  408.             results in wide format.
  409.                  You didn't really think it mean turn on the 'w' and 'r' attributes for any
  410.             file which doesn't have the 'c' attribute and has only the 'r','h' attributes
  411.             did you?
  412.  
  413.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 7
  414.  
  415.  
  416.                  This brings us to a the way AT parses you command line.  All commands are
  417.             initiated with the "/".  Without this, AT will ignore whatever you type after
  418.             the first field following "AT".  Once AT encounters the "/", it knows you're
  419.             issuing a command and sets about deciphering it.  When AT encounters one of the
  420.             search/set mode indicators (=,/x,*,+,-,~), it treats all attribute letters
  421.             following that symbol as belonging to it.  Things proceed in this manner until
  422.             another search/set mode indicator is encountered.  Then the following attribute
  423.             letters correspond to that mode, and so on.  The special command symbols 'b',
  424.             'c', and 'w'. are noted when AT finds them, but since they are not attribute
  425.             letters they are ignored, or considered invisible, to the part of AT which is
  426.             associating attributes with mode/set indicators.
  427.                  Because of this way of parsing the command line, the order in which
  428.             commands are issued does not matter, so "AT /=rh+a-s", "AT /-s+a=rh", and "AT
  429.             /+a+rh-s", etc. are equivalent.  What counts is what letters follow the
  430.             previous set/mode symbol.
  431.                  As mentioned earlier the 'c' and 'b' command are always executed before
  432.             any others, so a command of the form "/+ac+h" does not set the 'a' attribute,
  433.             then clear it and set the h attribute.  This command would clear all attributes
  434.             and then set the h & a attributes.
  435.  
  436.  
  437.  
  438.             ERROR MESSAGES:
  439.  
  440.                  If you issue commands which contain illegal characters, AT will prompt you
  441.             with an error message which shows you the command you tried, and the illegal
  442.             characters [within square brackets].  AT will not, however, balk at obviously
  443.             meaningless expression such as "AT /=a~a" which tell it to "search for all
  444.             files which have only the 'a' attribute, but which do not have the 'a'
  445.             attribute."  AT will proceed as usual and simply give you the "No files found"
  446.             message.
  447.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 8
  448.  
  449.  
  450.             OUTPUT:
  451.  
  452.                  Below is an explanation of the output you get in the various AT modes. 
  453.             For a visual guide to go along with the explanations, see the sample AT
  454.             listings at the end of this manual.
  455.  
  456.  
  457.             VOLUME LABEL:
  458.  
  459.                       First AT prints the Volume label (if any) of the media (disk) you are
  460.                  reading from.  If there is no label, you are told that.
  461.  
  462.  
  463.             PATH SPECIFICATION:
  464.  
  465.                       Next comes the path specification.  This tells you the device, path,
  466.                  and file name you told AT to look for.  All components (such as device,
  467.                  path, etc) default to their current values if not specified.  Note that
  468.                  the path listing also displays any wildcards you may have specified in
  469.                  your original command.  Contrast this to the "dir" path listing which says
  470.                  "Directory of A:\ACCOUNTS" whether you typed "dir a:\accounts" or "dir
  471.                  a:\accounts\paid.up".  This is useful if you make printed directory
  472.                  listings for reference or distribution.  Now you will know if the
  473.                  directory listing you hold in you hand is of a complete directory, or a
  474.                  partial one.
  475.  
  476.  
  477.             COMMAND FIELD:
  478.  
  479.                       Following the path display, AT prints the commands you gave it (if
  480.                  any) in between the "[...]" symbols.
  481.  
  482.  
  483.             INDIVIDUAL FILE LISTINGS:
  484.  
  485.             ATTRIBUTE LINE:
  486.  
  487.                       Next comes the file listings, which begin with the attribute line. 
  488.                  This line has a "_" in places where no attributes are present, or a
  489.                  character representing attributes which are set.  Following this line,
  490.                  depending on the command you issue, you may see the file name, a "*", or
  491.                  an "E".  If one of these single character symbols is present, It mean you
  492.                  issued a "change attributes" command, and AT is letting you know the
  493.                  results of that command.
  494.                       Whenever AT changes the attributes of a file, it puts a "*" next to
  495.                  the attribute line of the file whose attributes were changed.  The
  496.                  attributes listed are the new attributes.  If AT tries to change the
  497.                  attributes of a file and DOS won't let it, instead of the "*", a "E"
  498.                  appears with the file's current attributes.  If you order the attributes
  499.                  on a file changed, and no "*" appears, that means the file was already set
  500.                  to the attributes you specified.
  501.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                              pg 9
  502.  
  503.  
  504.             FILESPEC, TIME, DATE:
  505.  
  506.                       Next come the File Name and File Extension (or <DIR> if file is a
  507.                  directory).  If you did not specify the wide mode you will also see: "Time
  508.                  of file creation" (identical to "dir" except for the listing of the day
  509.                  and month in English (note "dir" doesn't even give you the day of the
  510.                  week)).
  511.  
  512.  
  513.             FILE SIZE, %LAST CLUSTER SLACK:
  514.  
  515.                       The final entries on the individual file line are the size of the
  516.                  file in bytes, and %Last Cluster Slack.
  517.                       The %Last Cluster Slack following each file size is the amount of
  518.                  disk space which is slack (i.e. unoccupied but unusable) associated with
  519.                  the particular file.  Disk space is parcelled out by DOS in units of fixed
  520.                  number of bytes (called clusters), so if a file's size doesn't go into
  521.                  this allocation size exactly, some of the allocated space will be unused. 
  522.                  The %Last Cluster Slack is simply the % unused space in the last cluster
  523.                  the file occupies.  For example, If a file is 700 bytes long, and the disk
  524.                  space is allocated in clusters of 512 bytes, then the file requires 2
  525.                  clusters (1024) bytes because one cluster is not large enough to contain
  526.                  it.  Thus with two clusters taken, 324 bytes (1024 - 700) will be unused,
  527.                  and the last cluster will be 36.7% slack.
  528.  
  529.             DIRECTORY SUMMARY INFORMATION:
  530.  
  531.             CURRENT DATE/TIME:
  532.  
  533.                       At the bottom of the listing you are given the current date/time in
  534.                  the same format as for individual files.
  535.  
  536.  
  537.             TOTAL BYTES IN FILES/SLACK:
  538.  
  539.                       Next comes the total number of bytes in the files (actual file sizes,
  540.                  not bytes occupied on the disk), and the total number of bytes slack. 
  541.                  Both byte totals are given in bytes and KB.  The file totals appear first
  542.                  (under the listing of individual file sizes in AT's normal mode).  The
  543.                  slack totals appear next (under the %Last Cluster Slack numbers of the
  544.                  individual listings in AT's normal mode).
  545.  
  546.             FOUND FILE CATEGORIES, FILE CHANGED COUNT, LISTING SLACK:
  547.  
  548.                       Following this is a count of the total number of files found, the
  549.                  number of real files found (non-directory, non-volume files), the number
  550.                  of files changed (if any) and the %Slack for the total listing (This
  551.                  %Slack is calculated slightly differently than that for the individual
  552.                  listings.  Instead of being the %Slack of the last cluster, this %Slack is
  553.                  the %unused disk space with respect to the total disk space (slack and
  554.                  data) occupied by the listed files). 
  555.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 10
  556.  
  557.  
  558.             DISK STATISTICS:
  559.  
  560.                       Lastly AT gives you information about the disk from which the
  561.                  directory listing was obtained.  It gives you the amount of free space in
  562.                  bytes, KB, and % free formats.
  563.                       The last numbers given, contained in square brackets, tell you the
  564.                  base capacity of the drive (lo and behold! a 360KB drive doesn't give you
  565.                  360KB of usable file space), and the number of bytes in one allocation
  566.                  unit (cluster, abbreviated "clust").  Note that this cluster size is the
  567.                  one used to calculate the %Last Cluster Slack.  It is the minimum number
  568.                  of bytes the disk can give away when DOS asks for storage space.
  569.  
  570.  
  571.  
  572.  
  573.             NOTES ON THE D, V, X, AND Y ATTRIBUTES:
  574.  
  575.                  Currently (DOS 3.1 or earlier), DOS will not let you set the d,v,x,or y 
  576.             attributes.  There are good reasons for this.  To unset/set the 'd' attribute
  577.             would be suicide in the sense that suddenly your directory, and all its
  578.             contents, would no longer exist as far as DOS was concerned, or a new directory
  579.             would be indicated where DOS had no record of one, which drives DOS crazy.  On
  580.             the other hand, you can set the 'a','r','s', and 'h' attributes on a
  581.             subdirectory.  The effects of these attributes on a subdirectory is discussed
  582.             in the section titled "Specific Effects Of Attributes".
  583.                  As far as the 'v' attribute is concerned, one could get around DOS by
  584.             direct reads and writes to the disk and set the 'v' attribute, but again, this
  585.             could only mess things up as files with this attribute must have zero length
  586.             and thus cannot be created by conventional means at our disposal.  Unlike the
  587.             case with the 'd' attribute, other attributes may not be set on an entry which
  588.             has the 'v' attribute.
  589.                  Similarly, you could get around DOS and set the 'x', and 'y' attributes. 
  590.             I have done this as an experiment, and AT indicates their presence (without any
  591.             apparent disastrous consequences).  However, I am betting that since DOS
  592.             doesn't let you at these bits in a civilized manner, the mighty makers of DOS
  593.             don't want you fooling around with them yet.  Perhaps in the future these
  594.             attributes will be given the meaning "on power up, search for any files with
  595.             these attributes and erase them."  So, to play it safe, this program only lets
  596.             you access the things DOS consents to letting you at.  In the future, if DOS is
  597.             written to allow access to the 'x' and 'y' attributes, you will not be left out
  598.             in the cold.  AT will ask DOS, DOS will say yes, and AT will go ahead and
  599.             change them; so in this sense you have a program designed to take advantage of
  600.             attributes not even implemented yet!
  601.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 11
  602.  
  603.  
  604.             SPECIFIC EFFECTS OF ATTRIBUTES:
  605.  
  606.  
  607.             r - READ ONLY
  608.  
  609.                  The file cannot be erased or modified when this attribute is set, thus
  610.             protecting it from such commands as "del" and "edlin" (you may edit such a file
  611.             with "edlin", but when you go to end the session with the "e" command, which
  612.             normally saves the changes, DOS responds with an error message and the original
  613.             file is not modified).  The file may be renamed, however the renamed file will
  614.             still carry the 'r' attribute.  Finally, you can copy a file with the 'r'
  615.             attribute to another file.  In this case the copied file will not have 'r' set
  616.             while the original remains unaffected. 
  617.                   Trying to erase a file with the 'r' attribute results in the message
  618.             "Access denied"; trying to write over the file with another file of the same
  619.             name results in the message "File creation error".  If an applications program
  620.             attempts to modify the file, it will be denied access.  The error message you
  621.             will get in this situation depends upon the way the program is set up to deal
  622.             with such events.
  623.                  This attribute may also be set on subdirectories, but it has no effect on
  624.             DOS; such directories can still be removed with the "rd" command.  However,
  625.             setting this attribute on a directory could useful as a method of flagging the
  626.             directory to signal something about the directory or its contents.
  627.  
  628.  
  629.             a - ARCHIVE
  630.  
  631.                  Under normal DOS operation this attribute is automatically set on a file
  632.             when it is created or modified.  It also has significance in conjunction with
  633.             DOS's "backup" and "restore" commands.
  634.                  The backup command uses the archive attribute with its two options "/m"
  635.             (backup only files which have changed since the last backup), and "/d" (backup
  636.             only files which have changed since a given date).  The way DOS determines
  637.             whether or not a file has been modified is by examining its archive attribute. 
  638.             If this attribute is set, DOS considers the file as having been changed.
  639.                  The restore command uses the archive attribute with the "/p" (have DOS
  640.             prompt you for confirmation before restoring files which have changed since the
  641.             last backup).  Again, the way DOS determines whether or not a file has changed
  642.             is by examining the file's archive attribute.
  643.                  This attribute may also be set on a directory, but it has no meaning to
  644.             DOS.  As with the 'r' attribute, however, you could use the 'a' attribute on a
  645.             directory to distinguish it from others for whatever reason you might have.
  646.  
  647.  
  648.             d - DIRECTORY
  649.  
  650.                  This attribute indicates that the directory entry associated with it is
  651.             actually that of another directory (subdirectory).  You cannot set or unset
  652.             this attribute with AT.  You may, however, set the 'r','a','s', and 'h'
  653.             attributes on a directory entry.  Look under a specific attribute to see its
  654.             effects when applied to a subdirectory.
  655.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 12
  656.  
  657.  
  658.             v - VOLUME LABEL
  659.  
  660.                  This attribute indicates that the directory entry is a volume label
  661.             (present only with DOS 2.0 and above).  Under normal situations, volume labels
  662.             will be found only in a disk's root directory.  This attribute cannot be set or
  663.             unset with AT, nor can other attributes be set on a entry which has this
  664.             attribute.
  665.  
  666.             h - HIDDEN
  667.  
  668.                  This attribute excludes files from ordinary DOS "dir" directory searches,
  669.             as well as making them inaccessible to the "copy", "del", and "ren" commands. 
  670.             Such files may, however, be accessed by the "type" and "edlin" commands if you
  671.             know their names.  Note too that some utilities, such as the Norton Utilities++
  672.             "FINDFILE" (and AT!) can list files regardless of their attribute settings.
  673.                  Subdirectories which are hidden are simply removed from the "dir" listing. 
  674.             They may still be accessed as usual with the "cd" command, removed with the
  675.             "rd" command, and have a file within them accessed, if you know the name of the
  676.             hidden directory.  Note that such hidden directories will still be backed up as
  677.             normal with the DOS "backup" command; and while they will not be listed by some
  678.             DOS utilities, such as "tree", they will be listed by others such as "chkdsk"
  679.             used with the "/v" option.
  680.                  The 'h' attribute will not prevent a data file from being read, and in
  681.             most cases does not prevent a file from being executed or used by another
  682.             program; for example AT.EXE may be hidden and still function just fine. 
  683.             However, there are some programs (because of the kind of DOS calls they use to
  684.             access files) that cannot run with their HIDDEN attribute set.  The best way to
  685.             determine whether or not a given file will work in the hidden mode is to hide
  686.             it and then attempt to use it.
  687.                  A WORD OF CAUTION ABOUT UNHIDING FILES:  Many valid copy protection
  688.             schemes involve the placing of hidden files on your disks or hard disk. 
  689.             Removal of the 'h' attribute from these files may interfere with the operation
  690.             of their associated programs.  Also, some software intentionally ignores hidden
  691.             files (hard disk optimizers for example) as operating on these files (in this
  692.             case relocating them on the disk) may cause the programs associated with them
  693.             to be rendered inoperable.  A good rule of thumb is to hide or unhide files you
  694.             create, and to leave any hidden files created by software you use alone.
  695.  
  696.             s - SYSTEM
  697.  
  698.                  This attribute is functionally equivalent to the HIDDEN attribute for data
  699.             files and directories.  However, an executable file cannot be run from the DOS
  700.             command level if this attribute is set (the program may, however, be run by
  701.             another program which calls it via the 4Bh DOS function call).
  702.  
  703.  
  704.             x - UNUSED as of DOS 3.1
  705.  
  706.             y - UNUSED as of DOS 3.1
  707.  
  708.             ++ "Norton Utilities" is a registered trademark of Peter Norton
  709.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 13
  710.  
  711.  
  712.             What AT looks like in its various output forms as compared to DOS's "dir"
  713.             command.
  714.  
  715.  
  716.             DOS "dir" command:
  717.  
  718.  
  719.  
  720.  
  721.              Volume in drive C is FIXED DISK 
  722.              Directory of  C:\
  723.  
  724.             ASM          <DIR>      4-10-86   2:52p
  725.             BASIC        <DIR>      1-08-85   1:18p
  726.             CM           <DIR>      4-28-86  11:47a
  727.             CW           <DIR>      4-13-86  12:33a
  728.             DTA          <DIR>      1-08-85   1:39p
  729.             WRITING      <DIR>      1-08-85   1:57p
  730.             LOGLOG           2271   5-23-86  12:49p
  731.             AUTOEXEC 2        246   4-06-86  10:13p
  732.             AUTOEXEC BAT      283   5-06-86  11:33a
  733.                     9 File(s)  13479936 bytes free
  734.  
  735.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 14
  736.  
  737.  
  738.             The same directory with AT in the "wide" mode:
  739.  
  740.  
  741.  
  742.  
  743.  
  744.             ATTRIBUTES OF POWER (V2.2, DOS 2.0 or later; Copyright (c)1986 Brian Murphy)
  745.  
  746.             Volume in drive C is labeled: FIXED DISK    
  747.             Directory of  C:\*.*     [/w]
  748.  
  749.             _____hsr  IBMBIO    COM    _____hsr  IBMDOS    COM    ____v___  FIXED DISK    
  750.             ___d____  ASM      <DIR>   ___d____  BASIC    <DIR>   ___d____  CM       <DIR>
  751.             ___d____  CW       <DIR>   ___d_h__  DOS      <DIR>   ___d____  DTA      <DIR>
  752.             ___d_h__  FILE     <DIR>   ___d_h__  GAMES    <DIR>   ___d_h__  RESEARCH <DIR>
  753.             ___d____  WRITING  <DIR>   __a_____  LOGLOG           _______r  AUTOEXEC  2   
  754.             __a____r  AUTOEXEC  BAT    __a__h_r  MPATH     BAT    _____h_r  BASICA    COM 
  755.             _____h_r  CBASIC    COM    __a__h_r  COMMAND   COM    _____h__  HENP      DBU 
  756.             __a__h_r  AT        EXE    _____h_r  BASICA    EXE    _____h__  BWM0200   HEN 
  757.             _____h__  ASSERT    LLP    _____h__  DBATE     OMS    _____h__  ANSI      SYS 
  758.             _____h_r  CONFIG    SYS    _____h__  VDISK     SYS    
  759.             Mon  Sep 22, 1986   4:04:26 pm                Total bytes:    376457    20855  
  760.                                                                    KB:     367.6     20.4
  761.              29 Entries found (18 proper files); listing is 5.2% slack.
  762.                 Drive C: 13479936 bytes free (13164.0KB or 45%); [cap:29496.0KB clust:2048]
  763.  
  764.             ATTRIBUTES OF POWER, V2.2; September 22, 1986                             pg 15
  765.  
  766.  
  767.             The same directory with AT used in the default "detailed" mode:
  768.  
  769.  
  770.  
  771.  
  772.  
  773.             ATTRIBUTES OF POWER (V2.2, DOS 2.0 or later; Copyright (c)1986 Brian Murphy)
  774.  
  775.             Volume in drive C is labeled: FIXED DISK    
  776.             Directory of  C:\*.*     
  777.  
  778.             _____hsr  IBMBIO    COM     Mon  Sep 30, 1985  12:00:00p        9728    25.0%
  779.             _____hsr  IBMDOS    COM     Mon  Sep 30, 1985  12:00:00p       27760    44.5%
  780.             ____v___  FIXED DISK        Sat  Apr 12, 1986  10:37:18a
  781.             ___d____  ASM      <DIR>    Ths  Apr 10, 1986   2:52:24p
  782.             ___d____  BASIC    <DIR>    Tue  Jan  8, 1985   1:18:48p
  783.             ___d____  CM       <DIR>    Mon  Apr 28, 1986  11:47:12a
  784.             ___d____  CW       <DIR>    Sun  Apr 13, 1986  12:33:44a
  785.             ___d_h__  DOS      <DIR>    Tue  Jan  8, 1985   1:15:18p
  786.             ___d____  DTA      <DIR>    Tue  Jan  8, 1985   1:39:26p
  787.             ___d_h__  FILE     <DIR>    Tue  Jan  8, 1985   1:52:18p
  788.             ___d_h__  GAMES    <DIR>    Mon  Apr  7, 1986   7:32:18p
  789.             ___d_h__  RESEARCH <DIR>    Ths  May 22, 1986  11:48:18p
  790.             ___d____  WRITING  <DIR>    Tue  Jan  8, 1985   1:57:28p
  791.             __a_____  LOGLOG            Fri  May 23, 1986  12:49:24p        2271    89.1%
  792.             _______r  AUTOEXEC  2       Sun  Apr  6, 1986  10:13:48p         246    88.0%
  793.             __a____r  AUTOEXEC  BAT     Tue  May  6, 1986  11:33:36a         283    86.2%
  794.             __a__h_r  MPATH     BAT     Tue  May  6, 1986  11:26:36a         168    91.8%
  795.             _____h_r  BASICA    COM     Mon  Sep 30, 1985  12:00:00p        1173    42.7%
  796.             _____h_r  CBASIC    COM     Mon  Sep 30, 1985  12:00:00p        1175    42.6%
  797.             __a__h_r  COMMAND   COM     Mon  Sep 30, 1985  12:00:00p       23210    66.7%
  798.             _____h__  HENP      DBU     Mon  Jul 16, 1983  10:44:44a       53760    75.0%
  799.             __a__h_r  AT        EXE     Ths  May 22, 1986   3:51:08p       16707    84.2%
  800.             _____h_r  BASICA    EXE     Mon  Sep 30, 1985  12:00:00p       66576    49.2%
  801.             _____h__  BWM0200   HEN     Fri  Mar 14, 1986   3:48:34p        4096     0.0%
  802.             _____h__  ASSERT    LLP     Mon  Jul 16, 1984  10:44:48a       15223    56.7%
  803.             _____h__  DBATE     OMS     Sat  Nov  3, 1985   1:43:18p      149504     0.0%
  804.             _____h__  ANSI      SYS     Mon  Sep 30, 1985  12:00:00p        1593    22.2%
  805.             _____h_r  CONFIG    SYS     Sun  Apr  6, 1986   5:20:14p          58    97.2%
  806.             _____h__  VDISK     SYS     Mon  Sep 30, 1985  12:00:00p        2926    57.1%
  807.             Mon  Sep 22, 1986   4:04:32 pm                Total bytes:    376457    20855  
  808.                                                                    KB:     367.6     20.4
  809.              29 Entries found (18 proper files); listing is 5.2% slack.
  810.                 Drive C: 13479936 bytes free (13164.0KB or 45%); [cap:29496.0KB clust:2048]
  811.  
  812.  
  813.